<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ include file="../language.jsp" %>
<%
	if(session.getAttribute("loginName")==null){
		response.sendRedirect( "login.jsp");
		return;
	}
	request.setAttribute("registerLocation",request.getParameter("registerLocation"));
	request.setAttribute("contactNo",request.getParameter("contactNo"));
	request.setAttribute("recommendUser",request.getParameter("recommendUser"));
	request.setAttribute("declarationCenters",request.getParameter("declarationCenters"));
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="UTF-8">
<title><fmt:message key="i18n.userReg"/>-<fmt:message key="i18n.title"/></title>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1" />

<!-- Bootstrap framework -->
    <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" />
    <link rel="stylesheet" href="bootstrap/css/bootstrap-responsive.min.css" />
<!-- breadcrumbs-->
	<link rel="stylesheet" href="lib/jBreadcrumbs/css/BreadCrumb.css" />
<!-- main styles -->
    <link rel="stylesheet" href="css/sub_page_main_style.css" />
<link rel="stylesheet" type="text/css" href="../styles/user/style.css" />
<!--[if lte IE 8]>
    <link rel="stylesheet" href="css/ie.css" />
    <script src="js/ie/html5.js"></script>
    <script src="js/ie/respond.min.js"></script>
<![endif]-->

</head>
<body style="height:800px" >
<!-- 主体内容 -->
<div id="contentwrapper">
	<div class="main_content">
		<%-- <div class="liTitle">
        	<span></span>
         	<div class="litit"><h3><fmt:message key="i18n.newUserReg"/></h3></div>
         	<strong></strong>
     	</div> --%>
     	
     	<nav>
            <div id="jCrumbs" class="breadCrumb module">
                <ul>
                    <li>
                        <a href="main.jsp"><i class="icon-home"></i></a>
                    </li>
                    <li>
                        <a href="#"><fmt:message key="i18n.userCenter"/></a>
                    </li>
                    <li>
                        <a href="#"><fmt:message key="i18n.newUserReg"/></a>
                    </li>
                </ul>
            </div>
         </nav>	
     	
     	<div class="">
     			<form action="registerUser!saveRegiserUser.action" method="post" id="register_form">
     				<input type="hidden" name="registerUserDTO.registerLocation" id="registerLocation" value="aArea" />
     				<div class="verBox">
     					<span class="regw110"><fmt:message key="i18n.userlevel" />:</span>
     					<div class="verbTxt">
     						<select class="regSele" name="registerUserDTO.registerLevel">
     							<option value="L1"><fmt:message key="L1" /></option>
     							<option value="L2"><fmt:message key="L2" /></option>
     							<option value="L3"><fmt:message key="L3" /></option>
     							<option value="L4"><fmt:message key="L4" /></option>
     							<option value="L5"><fmt:message key="L5" /></option>
     							<option value="L6"><fmt:message key="L6" />(不可购买)</option>
     							<%--<option value="L7"><fmt:message key="L7" /></option>
     							<option value="L8"><fmt:message key="L8" /></option> --%>
     						</select>
     					</div>
     				</div>
					
                    <div class="verBox">
                        <span class="regw110"><fmt:message key="i18n.userRegAccount"/>:</span>
                        <div class="verbTxt">
                            <span></span>
                            <div class="vebTextbg">
                                <input class="veText" name="registerUserDTO.loginName" id="reg_loginName" readonly="readonly" />
                            </div>
                            <strong></strong>
                        </div>
                        <div class="note">
                            <span style="color:red;">&nbsp;&nbsp;*</span>&nbsp;&nbsp;<a href="javascript:randomNo('reg_loginName')">[<fmt:message key="i18n.reShengCheng"/>]</a>
                        </div>
                    </div>
                    <div class="verBox">
                        <span class="regw110"><fmt:message key="i18n.piUserName"/>：</span>
                        <div class="verbTxt">
                            <span></span>
                            <div class="vebTextbg">
                                <input class="veText" name="registerUserDTO.userName" id="reg_userName" />
                            </div>
                            <strong></strong>
                        </div>
                        <div class="note">
                           <span style="color:red;">&nbsp;&nbsp;*</span>&nbsp;&nbsp;<fmt:message key="i18n.userNameAndBankNameTips"/>
                        </div>
                    </div>
                    <div class="verBox">
                        <span class="regw110"><fmt:message key="i18n.loginPassword"/>：</span>
                        <div class="verbTxt">
                            <span></span>
                            <div class="vebTextbg">
                                <input class="veText" type="password" value="666666" id="reg_password1" name="registerUserDTO.password1"/>
                            </div>
                            <strong></strong>
                        </div>
                        <div class="note">
                            <span style="color:red;">&nbsp;&nbsp;*</span>&nbsp;&nbsp;<fmt:message key="i18n.loginPasswordDefaule"/>：666666
                        </div>
                    </div>
                    <div class="verBox">
                        <span class="regw110"><fmt:message key="i18n.cofimLoginPassword"/>：</span>
                        <div class="verbTxt">
                            <span></span>
                            <div class="vebTextbg">
                                <input class="veText" type="password" value="666666" id="reg_conf_password1"/>
                            </div>
                            <strong></strong>
                        </div>
                        <div class="note">
                            <span style="color:red;">&nbsp;&nbsp;*</span>
                        </div>
                    </div>
                    <div class="verBox">
                        <span class="regw110"><fmt:message key="i18n.send2Password"/>：</span>
                        <div class="verbTxt">
                            <span></span>
                            <div class="vebTextbg">
                                <input class="veText" type="password" value="888888" id="reg_password2" name="registerUserDTO.password2" />
                            </div>
                            <strong></strong>
                        </div>
                        <div class="note">
                            <span style="color:red;">&nbsp;&nbsp;*</span>&nbsp;&nbsp;<fmt:message key="i18n.send2PasswordDefaule"/>：888888
                        </div>
                    </div>
                    <div class="verBox">
                        <span class="regw110"><fmt:message key="i18n.cofimsend2Password"/>：</span>
                        <div class="verbTxt">
                            <span></span>
                            <div class="vebTextbg">
                                <input class="veText" type="password" value="888888" id="reg_conf_password2" class="easyui-validatebox" />
                            </div>
                            <strong></strong>
                            
                        </div>
                        <div class="note">
                            <span style="color:red;">&nbsp;&nbsp;*</span>
                        </div>
                    </div>
                    <div class="verBox">
                        <span class="regw110"><fmt:message key="i18n.recommendUser"/>：</span>
                        <div class="verbTxt">
                            <span></span>
                            <div class="vebTextbg">
                                <input class="veText" name="registerUserDTO.recommendUser" id="reg_recommendUser" value="" onBlur="findUserNameByLoginName(this.value,'reg_show_recommendUser')" />
                            </div>
                            <strong></strong>
                        </div>
                        <div class="note">
                            &nbsp;&nbsp;<span id="reg_show_recommendUser" style="color:red;">*</span>
                            <%-- 
                            &nbsp;&nbsp;<input type="button" value="<fmt:message key="useSysDefault" />" onclick="useDefault('reg_recommendUser')">
                            --%>
                        </div>
                    </div>
                    <div class="verBox">
     					<span class="regw110"><fmt:message key="position" />:</span>
     					<div class="verbTxt">
     						<a style="vertical-align: middle;padding-top:5px;"><fmt:message key="i18n.left" />：</a>
     						<input type="radio" name="registerUserDTO.registerLocation1" id="registerLocation_aArea"  checked="checked" value="aArea" />
							<a style="vertical-align: middle;padding-top:5px;"><fmt:message key="i18n.right" />：</a	>
							<input type="radio" name="registerUserDTO.registerLocation1" id="registerLocation_bArea" <c:if test="${registerLocation eq 'bArea' }"> checked="checked" </c:if> value="bArea" />
     						
     					</div>
     				</div>
         			<div class="verBox">
     					<span class="regw110"><fmt:message key="contactuser" />:</span>
     					<div class="verbTxt">
     						<span></span>
     						<div class="vebTextbg">
     						 <input class="veText" onfocus=this.blur() name="registerUserDTO.contactNo" id="reg_contactNo" value="${contactNo}"  onBlur="findUserNameByLoginName(this.value,'reg_show_contactNo')" />
     						 </div>
     						  <strong></strong>
     					</div>
     					<div class="note">
                            &nbsp;&nbsp;<span id="reg_show_contactNo" style="color:red;">*</span>
                            &nbsp;&nbsp;<input type="button" value="<fmt:message key="sysAutoFindContact" />" onclick="findcontact('reg_recommendUser')">
                        	<input type="button" value="接点人(移动版)" onclick="findcontact1('reg_recommendUser')">
                        	<span id="showContactNoList"></span>
                        	
                        </div>
     				</div>
                    <div class="verBox">
                        <span class="regw110"><fmt:message key="i18n.bdCenter"/>：</span>
                        <div class="verbTxt">
                            <span></span>
                            <div class="vebTextbg">
                                <input class="veText" type="text" name="registerUserDTO.declarationCenters"  value="${declarationCenters}" id="reg_declarationCenters" onBlur="findUserNameByLoginName(this.value,'reg_show_userName')" />
                            </div>
                            <strong></strong>
                        </div>
                        <div class="note">
                        	&nbsp;&nbsp;<span id="reg_show_userName" style="color:red;">*</span>
                        	<%-- 
                            &nbsp;&nbsp;<input type="button" value="<fmt:message key="useSysDefault" />" onclick="useDefault('reg_declarationCenters')">
                            --%>
                        </div>
                    </div> 
                    <div class="verBox">
                        <span class="regw110"><fmt:message key="i18n.openUserBank"/>：</span>
                        <div class="verbTxt">
                            <select class="regSele" id="accountType" name="registerUserDTO.accountType" >
								<%-- <option value="">--<fmt:message key="i18n.pelaseSelect"/>--</option> --%>
								<option value="中国农业银行"><fmt:message key="i18n.abcBank"/></option>
								<option value="中国工商银行"><fmt:message key="i18n.gongBank"/></option>
								<option value="中国建设银行"><fmt:message key="i18n.ccbBank"/></option>
								<option value="中国银行"><fmt:message key="i18n.chinaBank"/></option>
								<option value="财付通"><fmt:message key="i18n.caifutong"/></option>
								<option value="支付宝">支付宝</option>
								<%-- 
								<option value="中国邮政"><fmt:message key="i18n.emsBank"/></option>
								<option value="中信银行"><fmt:message key="i18n.zhongxinBank"/></option>
								<option value="中国建设银行"><fmt:message key="i18n.ccbBank"/></option>
								<option value="中国交通银行"><fmt:message key="i18n.jiaoBank"/></option>
								<option value="中国浦发银行"><fmt:message key="i18n.pufaBank"/></option> 
								<option value="支付宝"><fmt:message key="i18n.zhifubao"/></option>--%>
							</select>
                        </div>
						<div class="note">
							<span style="color:red;"><fmt:message key="i18n.top002" /></span>
						</div>
                    </div>
                    <div class="verBox">
                        <span class="regw110"><fmt:message key="i18n.piBrankAccount"/>：</span>
                        <div class="verbTxt">
                            <span></span>
                            <div class="vebTextbg">
                                <input class="veText" type="text" id="reg_bankAccount" value="" name="registerUserDTO.bankAccount" />
                            </div>
                            <strong></strong>
                        </div>
                        <div class="note">
                            <span style="color:red;">&nbsp;&nbsp;*</span>
                        </div>
                    </div>
					<div class="verBox">
                        <span class="regw110"><fmt:message key="i18n.openBankAddress"/>：</span>
                        <div class="verbTxt">
                            <span></span>
                            <div class="vebTextbg">
                                <input class="veText" type="text" value="" id="openBankAddress" name="registerUserDTO.openBankAddress" />
                            </div>
                            <strong></strong>
                        </div>
                    </div>
                    <div class="verBox">
                        <span class="regw110"><fmt:message key="i18n.piMobile"/>：</span>
                        <div class="verbTxt">
                            <span></span>
                            <div class="vebTextbg">
                                <input class="veText" id="reg_phone" type="text" value="" name="registerUserDTO.phone" />
                            </div>
                            <strong></strong>
                        </div>
                        <div class="note">
                            <span style="color:red;">&nbsp;&nbsp;*</span>
                        </div>
                    </div>
                    <div class="verBox">
                        <span class="regw110"><fmt:message key="i18n.piEmail"/>：</span>
                        <div class="verbTxt">
                            <span></span>
                            <div class="vebTextbg">
                                <input class="veText" type="text" value="" name="registerUserDTO.email" id="reg_email" />
                            </div>
                            <strong></strong>
                        </div>
                        <div class="note">
                            <p><label style="color:red;">&nbsp;&nbsp;*</label>&nbsp;&nbsp;</p>
                        </div>
                    </div>
                    <!-- <div class="verBox">
                        <span class="regw110">注册子账号：</span>
                        <div class="">
                            <span></span>
                            <div class="vebTextbg">
                                &nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" value="subAccount" name="registerUserDTO.subAccount"  />
                            </div>
                            <strong></strong>
                        </div>
                        <div class="note">
                            <p><label style="color:red;"></label>&nbsp;&nbsp;</p>
                        </div>
                    </div> -->
                    <%-- 
                    <div class="verBox">
                        <span class="regw110"><fmt:message key="i18n.emailCode"/>：</span>
                        <div class="verbTxt">
                            <span></span>
                            <div class="vebTextbg">
                                <input class="veText" type="text" value="" id="reg_validCode"  />
                            </div>
                            <strong></strong>
                        </div>
                        <div class="note">
                        	<input type="button" style="height: 40px;" id="reg_email_button" value="<fmt:message key="i18n.getEmailValiCode"/>" onclick="getEmailActivationCode('邮件','注册','#reg_email')" />
                        </div>
                    </div>--%>
                    <!-- <div class="verBox">
                    	<span class="regw110"></span>
                        <span></span>
                        <div class="vebTextbg" id="reg_email_show" style="color: red;">
                        </div>
                    </div> -->
                    
                    <div class="verBox">
                        <span class="regw110"><fmt:message key="i18n.ptype"/>：</span>
                        <div class="verbTxt">
                            <select class="regSele" name="registerUserDTO.passwordProblem" >
                            	<jsp:include page="PwdProblem.jsp"></jsp:include>
							</select>
                        </div>
                    </div>
                    
                    <div class="verBox">
                        <span class="regw110"><fmt:message key="i18n.answer"/>：</span>
                        <div class="verbTxt">
                            <span></span>
                            <div class="vebTextbg">
                                <input class="veText" type="text" id="reg_passwordAnswer" name="registerUserDTO.passwordAnswer" />
                            </div>
                            <strong></strong>
                        </div>
                        <div class="note">
                            <p><label style="color:red;">&nbsp;&nbsp;* <fmt:message key="i18n.rememberSecretSecurity"/></label></p>
                        </div>
                    </div>
                    
                    <div class="verBox">
                    	<span class="regw110">&nbsp;</span>
                    	<c:if test="${not empty session.activationTime}">
                        <input class="btn btn-info" type="button" value="<fmt:message key="i18n.submitReg"/>" onclick="regSubmit()" />
                   		</c:if>
                    </div>
                </form>
     	</div>
	</div>
</div>

<script type="text/javascript" src="../scripts/jquery/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="../scripts/user/common.js"></script>
<script type="text/javascript" src="../scripts/user/reguser.js"></script>

<script type="text/javascript">
$(function(){
	$('#reg_registerLocation').val('${param.registerLocation}');
	randomNo('reg_loginName');
	document.onkeydown = function(evt){
		var evt = window.event?window.event:evt;
		if(evt.keyCode==13){
			regSubmit();
		}
	}
	$("#register_form select[name='registerUserDTO.registerLevel']").change(function(){
		if($(this).val()==='L6'){
			alert("Landgrave card is not available for purchase, please choose another level!\n伯爵卡暂不可购买，请选择其他级别！")
			$(this).val('L1');
		}
	});
	
	$('#registerLocation_aArea,#registerLocation_bArea').click(function(){
		$('#reg_contactNo').val('');
		alert('区位变更,请重新选择接点人!');
	});
	
	
	$('#reg_recommendUser').bind('blur',function(){
		$('#reg_contactNo').val('');
	});
});	


</script>
</body>
</html>